<template>
  <div class="message">
    <my-header title="消息" hasRight='true' rightTxt="发起聊天" />
    <div class="msg-warp">
      <div class="msg-nav">
        <div class="msg-nav-item">
          <div class="icon-box" @click="push(1)"><span class="iconfont icon-dingbudaohang-zhangh"></span></div>
          <p>粉丝</p>
        </div>
        <div class="msg-nav-item">
          <div class="icon-box" @click="push(2)"><span class="iconfont icon-xingxing"></span></div>
          <p>赞</p>
        </div>
        <div class="msg-nav-item">
          <div class="icon-box" @click="push(3)"><span class="iconfont">@</span></div>
          <p>@我的</p>
        </div>
        <div class="msg-nav-item">
          <div class="icon-box" @click="push(4)">
            <span class="iconfont icon-tubiaozhizuo-"></span>
          </div>
          <p>评论</p>
        </div>
      </div>
      <div class="msg-ab">
        <img src="../../static/img/1.jpg" alt="">
      </div>
      <div class="down">
        <div>抖音好友圈</div>
        <div><button class="btn">下载</button></div>
      </div>
      <div class="msg-list-box">
        <div class="msg-list" @click="msgPush">
          <img src="../../static/img/2.jpg" alt="">
          <div class="user-des">
            <div class="top">
              <span>抖音小助手</span>
              <span>23:14</span>
            </div>
            <div class="top top-msg">
              <span>抖音安全课堂</span>
              <span class="no-see"></span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import myHeader from '../../components/header/myHeader'
export default {
  components: {
    myHeader
  },
  methods: {
    push(e){
      if (e==1) {
        this.$router.push('/fans')
      }else if (e==2) {
        this.$router.push('/zan')
      }else if (e==3) {
        this.$router.push('/my')
      }else{
        this.$router.push('/pinlun')
      }
    },
    msgPush(){
      this.$router.push('/inmsg')
    }
  }
}
</script>
<style scoped>
.message, .msg-warp{
  height: 100%;
}
.msg-warp{
  padding: 0 20px;
  color: #ffffff;
  background-color: #101821;
}
.msg-nav{
  padding: 20px 5px;
  display: flex;
  justify-content: space-between;
}
.msg-nav-item{
  text-align: center;
  line-height: 60px;
  width: 60px;
}
.msg-nav-item .iconfont{
  font-size: 35px;
}
.msg-nav-item p{
  margin: -12px;
}
.icon-box{
  width: 60px;
  height: 60px;
  background-color: #ff4d74;
  border-radius: 5px;
  margin-bottom: 5px;
}
.msg-ab{
  padding: 20px 0;
  border-top: 1px solid #242630;
  border-bottom: 1px solid #242630;
}
.msg-ab img{
  height: 120px;
  width: 100%;
}
.down{
  padding: 20px 0;
  color: #cccccc;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #242630;
}
.down .btn{
  padding: 8px 25px;
  border: none;
  background-color: #fe2c55;
  color: #ffffff;
  border-radius: 2px;
}
.msg-list-box{
  padding-top: 30px;
}
.msg-list{
  display: flex;
  padding: 10px 0;
}
.msg-list img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.user-des{
  flex: 1;
  height: 60px;
}
.user-des .top{
  font-size: 14px;
  margin-left: 10px;
  display: flex;
  justify-content: space-between;
  line-height: 25px;
}
.top-msg{
  color: #666;
  align-items: center;
}
.no-see{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #face15;
}
</style>